<?php
class Xcrud_config{
    // default connection
    public static $dbname = 'kursus_staf';  // Your database name
    public static $dbuser = 'root';  // Your database username
    public static $dbpass = '';  // // Your database password
    public static $dbhost = 'localhost';  // Your database host, 'localhost' is default.
    public static $dbencoding = 'utf8';  // Your database encoding, default is 'utf8'. Do not change, if not sure.
    public static $mbencoding = 'utf-8';  // Your mb_string encoding, default is 'utf-8'. Do not change, if not sure.
    // xcrud folder url
    public static $scripts_url = 'http://localhost/bsmsuk/staf'; // URL to the xCRUD folder, not real path, without a trailing slash, can be relative, e.g. 'some_folder/xcrud' or absolute, e.g. 'http://www.your_site.com/some_folder/xcrud'
    public static $theme = 'default'; // can be 'default', 'bootstrap' or your custom. Theme of xCRUD visual presentation. For using bootstrap you need to load it on your page.
    // advanced settings
    public static $sess_name = 'PHPSESSID'; // If your script is already using the session, specify the session name for it. By default, the name of the session in PHP equal 'PHPSESSID'.
    public static $sess_expire = 30; // Specifies the lifetime of the session, as well as the existence of a key safety (for example, the maximum edit-saving timeout).
    public static $dynamic_session = false; // this option is used for compatibility with with frameworks and cms that using dynamic session name. 
    
    public static $tinymce_folder_url = ''; // URL path to TinyMCE, if you want to use the visual editor. TinyMCE is not included in xCRUD.
    public static $tinymce_init_url = ''; //  URL path to your custom initialization file for TinyMCE.
    public static $force_tinymce = false; // Forced initialization of TinyMCE, even if the path is not specified. Check this if you're already using TinyMCE on your page.
    
    public static $disable_plugins = false; // Disables loading of all scripts and styles totally, use it when you want to include scripts and style manually
    public static $disable_jquery = false; // Disables loading of jQuery (default from Google CDN), turn it on if you already have jQuery on your page  by version at least 1.7
    public static $disable_jquery_ui = false; // Disables loading of jQueryUI (default from Google CDN), turn it on if you already have jQueryUI on your page (datepicker and slider widgets are mandatory).
    public static $jquery_no_conflict = false; // Includes jQuery.noConflict(). Use according to documentation jQuery.
    
    public static $show_primary_ai_field = false; // Show primary auto-increment field in create/edit view.
    public static $show_primary_ai_column = false; // Show primary auto-increment column in list view.
    public static $start_minimized = false; // Start all xCRUD instances minimized.
    public static $remove_confirm = true; // Show confirmation dialog on remove action.
    public static $column_cut = 50; // Sets the maximum number of characters in the column.
    public static $benchmark = false; // Displays information about the performance in the lower right corner.
    
    public static $csv_delimiter = ','; // default delimiter in CSV file.
    public static $csv_enclosure = '"'; // default enclosure in CSV file.
    public static $csv_all_fields = false; // export all fields and rows of table or only visible.
    
    public static $limit = 20; // default limit of rows per page
    public static $limit_list = array( // default limits list
        '20',
        '50',
        '100',
        'all');
    public static $top_pagination = false; // create pagination in top
    public static $search_opened = false; // make search always open
    public static $clickable_list_links = true; // make all links, emails clikable in list view
    public static $make_checkbox = true; // display TINYINT(1),BIT(1),BOOL(1),BOOLEAN(1) fields like checkboxes
    public static $upload_folder_def = '../uploads'; // Default uploads folder on your site, relative to xCRUD folder or absolute path required. Folder is must exist.
    public static $images_in_grid = true; // shows images in list view
    public static $clickable_filenames = true; // makes filenames clikable in list view
    public static $images_in_grid_height = 55; // maximal height of thumbnails in list view
    public static $enable_printout = true; // show print button
    public static $fixed_action_buttons = true; // it allows to fix the action buttons on the right side of the table. Appears when you hover on row.
    
    public static $email_from = 'mailer@example.com'; // email from address
    public static $email_from_name = 'xCRUD Data Management System'; // email from name
    public static $email_enable_html = true; // enables html in email letters
    
}